GtkFileFilter: Don't set the name from the GtkBuilder ID
authorRobert Ancell <robert.ancell@canonical.com>
Sun, 7 Oct 2018 21:26:24 +0000 (10:26 +1300)
committerRobert Ancell <robert.ancell@canonical.com>
Mon, 27 Jan 2020 03:01:54 +0000 (16:01 +1300)
Don't use the GtkBuilder ID for the filter name - this is an ID, not a human
readable name. The name can now be set with a property.

gtk/gtkfilefilter.c

index 2551fdc714fe559723198e7ef7826e78a3f7f478..33ad6410653a2576af839cba72b5752ca6eb2598 100644 (file)
@@ -143,9 +143,6 @@ static void gtk_file_filter_finalize   (GObject            *object);
 
 
 static void         gtk_file_filter_buildable_init             (GtkBuildableIface  *iface);
-static void         gtk_file_filter_buildable_set_name         (GtkBuildable       *buildable,
-                                                                const gchar        *name);
-static const gchar* gtk_file_filter_buildable_get_name         (GtkBuildable       *buildable);
 
 static gboolean     gtk_file_filter_buildable_custom_tag_start (GtkBuildable       *buildable,
                                                                 GtkBuilder         *builder,
@@ -159,7 +156,6 @@ static void         gtk_file_filter_buildable_custom_tag_end   (GtkBuildable
                                                                 const gchar        *tagname,
                                                                 gpointer            data);
 
-
 G_DEFINE_TYPE_WITH_CODE (GtkFileFilter, gtk_file_filter, G_TYPE_INITIALLY_UNOWNED,
                          G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
                                                 gtk_file_filter_buildable_init))
@@ -279,21 +275,6 @@ gtk_file_filter_buildable_init (GtkBuildableIface *iface)
 {
   iface->custom_tag_start = gtk_file_filter_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_file_filter_buildable_custom_tag_end;
-  iface->set_name = gtk_file_filter_buildable_set_name;
-  iface->get_name = gtk_file_filter_buildable_get_name;
-}
-
-static void
-gtk_file_filter_buildable_set_name (GtkBuildable *buildable,
-                                    const gchar  *name)
-{
-  gtk_file_filter_set_name (GTK_FILE_FILTER (buildable), name);
-}
-
-static const gchar *
-gtk_file_filter_buildable_get_name (GtkBuildable *buildable)
-{
-  return gtk_file_filter_get_name (GTK_FILE_FILTER (buildable));
 }
 
 typedef enum {